<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
<!--引用其他  html 页面  include不保留大标签-->
<div th:replace="~{hello :: shouye}"></div>
<br>


<div>
    <form role="form" th:action="@{/upload}" method="post" enctype="multipart/form-data">
        <div >
            <label>邮箱</label>
            <input type="email" name="email" placeholder="Enter email" value="839864826@qq.com">
        </div>
        <div >
            <label>名字</label>
            <input type="text" name="username"  placeholder="Password" value="666666">
        </div>
        <div >
            <label>头像</label>
            <input type="file" name="headerImg" >
            <p >头像头像</p>
        </div>
        <div>
            <label>生活照</label>
<!--            multiple 表示多文件上传-->
            <input type="file" name="photos" multiple>
            <p>生活照生活照 </p>
        </div>
        <button type="submit" >提交</button>
    </form>
</div>
</body>
</html>